package File;

import java.io.*;

public class Demo13 {
    public static void main(String[] args){
try(Reader r=new FileReader("./test.txt")){
    while(true){
        char[]buf=new char[1024];
        int n=r.read(buf);
        if(n==-1){
            break;
        }
        for (int i = 0; i <n ; i++) {
            System.out.print(buf[i]);
        }
    }
}catch (IOException e){
    throw  new RuntimeException(e);
}
        


    }
}
